home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / fonts_fa / part11 < prev    next >
Text File  |  1994-01-25  |  10KB  |  236 lines

  1. Newsgroups: comp.fonts,comp.answers,news.answers
  2. Path: bloom-beacon.mit.edu!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!eff!news.kei.com!world!ora.com!norm
  3. From: norm@ora.com (Norman Walsh)
  4. Subject: comp.fonts FAQ: X11 Info
  5. Message-ID: <font-faq-11_759515252@ora.com>
  6. Followup-To: poster
  7. Summary: This posting answers frequently asked questions about fonts.
  8.          It addresses both general font questions and questions that
  9.          are specific to a particular platform.
  10. Sender: norm@ora.com (Norman Walsh)
  11. Supersedes: <font-faq-11_757281740@ora.com>
  12. Reply-To: norm@ora.com (Norman Walsh)
  13. Organization: O'Reilly and Associates, Inc.
  14. References: <font-faq-1_759515252@ora.com>
  15. Date: Tue, 25 Jan 1994 16:28:18 GMT
  16. Approved: news-answers-request@MIT.Edu
  17. Expires: Thu, 10 Mar 1994 16:27:32 GMT
  18. Lines: 215
  19. Xref: bloom-beacon.mit.edu comp.fonts:6521 comp.answers:3567 news.answers:14507
  20.  
  21. Archive-name: fonts-faq/part11
  22. Version: 2.0.3
  23.  
  24. Subject: 9. X11 Information
  25.   
  26.   This section needs a lot of work.  At the time of this release, I'm not
  27.   in a position to write it so I'm leaving it basically blank.  Even if
  28.   you don't have time to write it, if you know what should be in this
  29.   section, please forward it to norm.
  30.   
  31. Subject: 9.1. Getting X11
  32.   
  33.   The standard location for X software is ftp.x.org.
  34.   
  35. Subject: 9.2. Historical Notes about X11
  36.   
  37.   The X Window System has been in widespread use through releases 3, 4,
  38.   and now 5 of X Version 11.
  39.   
  40.   Fonts weren't really treated by the X Consortium very well until X11
  41.   release 5 (X11R5).  In X11R3 and X11R4, the default format used by the X
  42.   servers was called SNF (server normal format). Basically the font was
  43.   formatted on disk in such a way that the X server could quickly read and
  44.   use it (it was basically a memory-dump).  The important element of the
  45.   SNF format is that it was not a portable format: it depended on the
  46.   architecture of the machine running the server (little endian vs. big
  47.   endian, for example) and as a consequence you needed different directory
  48.   structures for different systems on your network.  On top of that,
  49.   several systems vendors implemented their own font format, making font
  50.   portability even more difficult.
  51.   
  52.   With X11R5, two things changed: the font service protocol was defined as
  53.   a standard and interoperable way for an X server to obtain fonts
  54.   (independent of their format, origin, or current location on disk) and
  55.   the default format for storing fonts was changed from SNF to PCF
  56.   (Portable Compiled Font).  PCF is a format originally developed by DEC.
  57.   Its primary advantage is that it is not architecture dependent.  That
  58.   is, if you compile a font to PCF format on different systems, then you
  59.   may end up having two different PCF files, but each system will be able
  60.   to read the other's file correctly.
  61.   
  62. Subject: 9.3. X11 Font Formats
  63.   
  64.   There are many different font formats that can play a role in an X11
  65.   system configuration.  The following table summarizes some of the
  66.   common formats:
  67.   
  68.      * BDF
  69.   
  70.        The Bitmap Distribution Format (BDF) is the standard format for
  71.        distribution of fonts. It is an ASCII format so it can easily be
  72.        edited it with your favourite editor or E-mailed to other users.
  73.        As the name suggests, it stores bitmap fonts only.
  74.   
  75.        Another virtue of the BDF format is that most font format
  76.        converters convert to or from this format. Means if you want to go
  77.        from format A to format B, neither of which is BDF, then you are
  78.        likely to convert A to BDF, then BDF to B.
  79.   
  80.        The BDF format is defined by Adobe.  A document describing the
  81.        format is available by ftp from Adobe's file server at
  82.        "ps-file-server@adobe.com".  It is also available in the standard X
  83.        distribution.  Look under ../X11R4(5)/mit/hardcopy/BDF.  This
  84.        document is also reproduced in any text describing the X standard.
  85.   
  86.      * SNF
  87.   
  88.        The Server Normal Format (SNF) is an older format for bitmap
  89.        fonts. The format is X Server and host dependent.  This means that
  90.        if you have two SNF files, their actual format may be different.
  91.        Also, if you have an "snftobdf" utility, it may not be able to
  92.        read font files from other systems.  Convert to BDF format before
  93.        you move it off the host system.
  94.   
  95.        Snftobdf is one utility that can generate a BDF file from a SNF
  96.        file.  It was part of the X11R4 contrib release.  To compile under
  97.        X11R5, you need some of the X11R4 snf include files.
  98.   
  99.      * PCF
  100.   
  101.        The Portable Compiled Font (PCF) format is a binary format for
  102.        bitmap fonts.  The binary contains sufficient information to be
  103.        readable by other systems.
  104.   
  105.      * PHIGS
  106.   
  107.        These fonts are only applicable in PEX environments.  PHIGS fonts
  108.        don't really have any relationship to the normal X font mechanism.
  109.   
  110.      * DWF
  111.   
  112.        The DECWindows Fonts (DWF) are bitmap fonts.
  113.   
  114.      * Intellifont
  115.   
  116.        These are HP scalable fonts.
  117.   
  118.      * PFA/PFB
  119.   
  120.        These are Adobe Type 1 PostScript fonts.
  121.   
  122.        They can be used in X11R5 based X servers and font servers because
  123.        IBM has donated a renderer for this format to the X Consortium.
  124.        The renderer can be found on the X11R5 contrib, and on ftp.x.org.
  125.   
  126.      * Speedo
  127.   
  128.        This is a format from Bitstream, Inc. Bitstream has also donated a
  129.        font renderer to the X Consortium, and a couple of fonts.
  130.   
  131.        I have been told that in order to use commercial fonts from
  132.        BitStream, you must patch the renderer somewhat to make it use the
  133.        right decryption code for the font.
  134.   
  135.      * FB
  136.   
  137.        These are Sun X11/NeWS format bitmap fonts used by the Sun
  138.        OpenWindows system.
  139.   
  140.        You can use "convertfont" which comes with OpenWindows to convert
  141.        to/from BDF.
  142.   
  143.      * F3/F3B
  144.   
  145.        This is the scalable Sun Folio format, also used by OpenWindows.
  146.   
  147.        You can use "convertfont" to convert to (not from) BDF.
  148.   
  149. Subject: 9.4. X11 Font Server Information
  150.   
  151.   With X11 Release 5, the X Consortium has created a network-based
  152.   standard font protocol. As a user of the X Window System, you have an X
  153.   server on your desktop, which does the interface between the hardware
  154.   (screen, mouse, keyboard), and the X network protocol. This X server
  155.   needs fonts.  Before X11r5, the only way it could get to those fonts
  156.   was to make font directories readable for the X server on that host,
  157.   either by NFS-mounting or by copying.
  158.   
  159.   With the X Font Service protocol, you just tell your X server that it
  160.   must use the services of a font server, which is a daemon process
  161.   sitting on a host on your network. The font server is a program which
  162.   talks a standardized protocol on the network, and which is capable of
  163.   reading several font formats.
  164.   
  165.   The font server sources are modular, such that it is easy to add a
  166.   renderer for an additional font format to the existing code. This is
  167.   obviously also the intention: the X Consortium provides the core
  168.   technology, and supposes that all systems vendors will add font
  169.   renderers for their proprietary formats to the code, and then ship that
  170.   to their customers.
  171.   
  172.   If you have a multi-vendor environment, then you are supposed to run a
  173.   font server on every host that carries the font files. Then all of the
  174.   X servers on your network can put all the fonts they need in their font
  175.   path. Automatically, IBM fonts will be requested from the font server
  176.   on an IBM host, DEC fonts from a DEC host, etc.
  177.   
  178.   Other benefits of using font server technology include the ability of
  179.   the font server to implement caching, provide for fault-tolerant setup,
  180.   etc.
  181.   
  182.   A final example of the good use of the font server is the combination
  183.   of a font server with a Type 1 font renderer. As mentioned above, IBM
  184.   donated a Type 1 font renderer which can easily be built into the X
  185.   font server. As the Type 1 font format, and the ATM format are the same,
  186.   it is perfectly possible to use commercial ATM fonts with the X Window
  187.   System.
  188.   
  189. Subject: 9.5. Fonts and utilities for X11
  190.   
  191.   Here's a quick list of possible steps to get from "what you got" to X:
  192.   
  193.      * Mac format bitmaps:
  194.   
  195.        No idea.  If you know how to read a Mac format bitmap file on some
  196.        other platform, please tell norm.
  197.   
  198.      * PC format bitmaps:
  199.   
  200.        Conversion to BDF is possible from TeX PK format and LaserJet
  201.        softfont format.  Other conversions are also within the realm of
  202.        possibility.  Feel free to ask norm for more information if you
  203.        have a specific conversion in mind.
  204.   
  205.      * TeX PK format bitmaps:
  206.   
  207.        PKtoBDF gets us directly to BDF format from here.
  208.   
  209.      * Mac format postscript:
  210.   
  211.        Under MS-DOS, conversion to PC format postscript allows the font to
  212.        be accessed with PS2PK (under *nix or MS-DOS).  See above for TeX
  213.        PK to X conversions.
  214.   
  215.      * PC/Unix format PostScript
  216.   
  217.        Conversion to TeX PK with PS2PK allows you to get to BDF
  218.        (indirectly).
  219.   
  220.      * XtoBDF, getbdf, FStoBDF
  221.   
  222.        XtoBDF and getbdf are two public-domain applications which are
  223.        capable of asking an X server to give them all it knows about a
  224.        given font. They then print the BDF representation of that font on
  225.        stdout.
  226.   
  227.        You can use these if you have an X server that can read some font
  228.        file, but nothing else can.
  229.   
  230.        FStoBDF is distributed with X11R5.
  231.   
  232.        If you use one of these programs, you may actually be converting a
  233.        scalable font into a bitmap font, but converting a bitmap font to a
  234.        scalable one is not currently possible.
  235.   
  236.